package com.ruoyi.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.domain.entity.AboutUsBanner;
import com.ruoyi.system.mapper.AboutUsBannerMapper;
import com.ruoyi.system.service.IAboutUsBannerService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author linxz
 * @since 2025-01-07
 */
@Service
public class AboutUsBannerServiceImpl extends ServiceImpl<AboutUsBannerMapper, AboutUsBanner> implements IAboutUsBannerService {

    @Override
    public List<AboutUsBanner> getList() {
        return baseMapper.getList();
    }

    @Override
    public int add(AboutUsBanner aboutUsBanner) {
        return baseMapper.add(aboutUsBanner);
    }

    @Override
    public int update(AboutUsBanner aboutUsBanner) {
        return baseMapper.update(aboutUsBanner);
    }

    @Override
    public int delete(int id) {
        return baseMapper.delete(id);
    }

    @Override
    public List<String> getSectionList() {
        return baseMapper.getSectionList();
    }

    @Override
    public List<Integer> getBannerIdList(String sectionName) {
        return baseMapper.getBannerIdList(sectionName);
    }

}
